@extends('common')
@section('content')
<style type="text/css">
    span{
        margin-left: 20px;
    }
</style>
<table class="table table-bordered table-hover definewidth m10" style="width:1000px;margin-left:10px;">
	<tr>
		<td>
			<br><span>
			 	车牌号 : <input type="text">
			</span>
			<span>
				报修人 : <input type="text">
			</span>
			<span>
				行驶证号 : <input type="text">
			</span><br><br>
			<span>
				维修日期 : <input type="text" id="dateinfo">
			</span>
			<span><button type="submit" class="btn btn-primary">查询</button></span>
			<span><button type="submit" class="btn btn-primary">维修登记</button></span>
			<span><a href="/execu/excel"><button type="submit" class="btn btn-primary">导出</button></a></span>
			
			<br><br>
		</td>
	</tr>
</table>
<table class="table table-bordered table-hover definewidth m10" style="width:1000px;margin-left:10px;">
		<th width="10">报修人</th>
		<th width="20%">维修时间</th>
		<th width="10%">维修车辆</th>
		<th width="20%">报修原因</th>
		<th width="10%">修理人</th>
		<th width="10%">处理人</th>
		<th width="20%">维修结果</th>
	@foreach($arr as $k => $v)
		<tr>
			<td>{{$v->use_name}}</td>
			<td>{{$v->ser_date}}</td>
			<td>{{$v->c_num}}</td>
			<td>{{$v->ser_cause}}</td>
			<td>{{$v->ser_cper}}</td>
			<td>{{$v->ser_per}}</td>
			<td>{{$v->ser_result}}</td>
		</tr>
	@endforeach
</table>
<style>

.pagination ul{
     margin-left: 20%;
 }
    
     .disabled span{
       display: none;
    }
 .pagination  li{
     float: left;
     overflow:hidden;
     margin-top:20px;
     list-style:none;

 }

 .pagination li a{
    display:block;
     height:30px;
     min-width:30px;
     text-align:center;
     font-size:14px;
     border:1px solid #d6d6d6;
     float:left;
     margin-left:10px;
     padding:3px 5px;
     line-height:30px;
     text-decoration:none;
     color:#666;
 }
 .active span{
    display:block;
     height:30px;
     min-width:30px;
     text-align:center;
     font-size:14px;
     border:1px solid #d6d6d6;
     float:left;
     margin-left:10px;
     padding:3px 5px;
     line-height:30px;
     text-decoration:none;
     color:#666;
 }
 .pagination li a:hover,a.here{
     background:#FF4500;
     border-color:#FF4500;
     color:#FFF;
 }
 .page{
    float:center;
 }

</style>
<div class='page'>
	{!! $arr->render() !!}
</div>
<script src="{{url('api/jedate/jedate.js')}}"></script>
<script type="text/javascript">
     jeDate({
          dateCell:"#dateinfo",
          format:"YYYY年MM月DD日 hh:mm:ss",
          isinitVal:true,
          isTime:true, //isClear:false,
          minDate:"2014-09-19 00:00:00",
          okfun:function(val){alert(val)}
     })
</script>
@stop
